<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="erp" uri="/erp-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML>
<html>
<head>
<base href="<%=basePath%>">
<link rel="stylesheet"
	href="<%=basePath%>script/jquery-ui-1.10.4/themes/base/jquery.ui.all.css">
<script src="<%=basePath%>script/jquery-ui-1.10.4/jquery-1.10.2.js"></script>
<script src="<%=basePath%>script/jquery-ui-1.10.4/ui/jquery.ui.core.js"></script>
<script src="<%=basePath%>script/jquery-ui-1.10.4/ui/jquery.ui.widget.js"></script>
<script src="<%=basePath%>script/jquery-ui-1.10.4/ui/jquery.ui.button.js"></script>
<script src="<%=basePath%>script/jquery-ui-1.10.4/ui/jquery.ui.datepicker.js"></script>
<script src="<%=basePath%>script/jquery-ui-1.10.4/jquery.ui.datepicker-zh-TW.js"></script>
<script src="<%=basePath%>script/script.js"></script>
<link rel="stylesheet"
	href="<%=basePath%>script/jquery-ui-1.10.4/demos/demos.css">
<link rel="stylesheet" href="<%=basePath%>style/style.css">
<style type="text/css" >

</style>
<script>
$(function() {
	init_add_page();
});
</script>

</head>
<body>
<div class="ui-widget center" style="margin: 10px;">
	<s:form action="timeoff_add" id="timeoff_add_form">
		<table style="margin: 1em 0;border-collapse: collapse;width: 95%">
			<tr>
				<td>标题：</td>
				<td><input type="text" name="title" value="请假单"></td>
			</tr>
			<tr>
				<td>请假人：</td>
				<td><input type="text" name="applicant.id" value="${session.user.id}"></td>
			</tr>
			<tr>
				<td>请假时间：</td>
				<td>
					<input type="text" name="leaveTime" id="from" />
					到
					<input type="text" id="to" />
					<a id="a_calc">计算</a>共
					<input type="text" id="dayNumber" name="dayNumber">天 
					<input type="text" name="hourNumber" value="0">小时
				</td>
			</tr>
			<tr>
				<td>请假原因：</td>
				<td><textarea rows="2" cols="30" name="reason"></textarea></td>
			</tr>
			<tr>
				<td>工作安排：</td>
				<td><textarea rows="2" cols="30" name="note"></textarea></td>
			</tr>
		</table>
		<a id="a_flow">开始流转</a>
		<a id="a_save">保存</a>
		<a id="a_cancel">取消</a>
	</s:form>
</div>
</body>
</html>
